package com.ftg.learn.exam.util;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.ToString;

/**
 * @author KangJx
 * @date 2021/4/2
 */
@Data
@AllArgsConstructor
@ToString
public class KjxResponseEntity {

    protected long code;
    protected String msg;

    public KjxResponseEntity(ErrorCode ec){
        this.setCode(ec.getCode());
        this.setMsg(ec.getMsg());
    }
}
